// ============================== 导入依赖 ============================== //

// ============================== 导出异步调用 ============================== //

export default {
  // —————————————————————————————— 列表 —————————————————————————————— //

  async remoteList({ state: { API, param }, getters: { GETTER } }) {
    const idList = param.statisticType === 5 ? param.monitorPointSiteId : []
    if (param.statisticType === 5 && !idList.length) return [0, []]

    const TIP = API.transTip(`查询${GETTER.category}报表`)
    const [num, arr] = await API.getList({ ...param, monitorPointSiteId: idList }, TIP)
    return [num, API.transList(arr, param)]
  },
}
